package util;

import java.util.ArrayList;
import java.util.List;

import field.objects.Ship;

public class EnemyListSingleton {
    private List<Ship> enemies;
    private static EnemyListSingleton enemyList;

    private EnemyListSingleton() {
        enemies = new ArrayList<Ship>();
    }

    public static EnemyListSingleton getEnemyList() {
        if (enemyList == null) {
            enemyList = new EnemyListSingleton();
        }
        return enemyList;
    }

    public List<Ship> getEnemies() {
        return enemies;
    }

    public void setEnemies(List<Ship> enemies) {
        this.enemies = enemies;
    }
}
